<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${site.name}-热度搜索</title>
[#include "../include/head.html"/]
</head>

<body>
<div id="wrap">
	[#include "../include/navigate.html"/]
    <div id="content">
        <div id="left">
        	<div id="searchA">
        		<form id="searchForm" action="${base}/search.jsp" onsubmit="if($('#txtKey').val()=='请输入关键词'){$('#txtKey').focus();return false;}">
                <div class="search_select">
                    <div class="ss_left"></div>
                    <div class="ss_text">
                        <select name="channelId" id="fid">
                    		<option value="0" [#if channelId?? && channelId=='0']selected="selected"[/#if]>文章标题</option>
                    		<option value="1" [#if channelId?? && channelId=='1']selected="selected"[/#if]>作者名称</option>
                    	</select>
                    </div>
                </div>
                <div class="search_input">
                    <div class="ss_left"></div>
                    <div class="si_text siWidth">
                        <input class="ss_input inputWidth" name="q" value="${q!'请输入关键词'}" type="text" id="txtKey" onfocus="if(this.value=='请输入关键词')this.value=''" onblur="if(this.value=='')this.value='请输入关键词'" maxlength="24" autocomplete="off"/><input id="searchBtn" type="image" src="/${res}/images/btn_search.gif" class="ss_search"/>
                    </div>
                </div>
                </form>
            [#if q??]
            [@cms_lucene_page q=q channelId=channelId! descLen='100' append='...' count='20' sysPage='1' pageClass='pagination']
                <p class="ss_result">找到 <span id="search_count">${tag_pagination.totalCount}</span> 个结果</p>
                <div class="clear"></div>
            </div>
        	<p class="location"><span class="black">当前位置：</span><a href="${base}/index/jsp" class="a_green2">《我们》纯文学网</a><span class="location_next">></span>搜索“${q}”结果</p>
            <ul class="classArticle_list">
            	<li class="liTitle">
                	<p class="classArticle_title">作品名</p>
                	<p class="classArticle_editor">作者</p>
                    <p class="classArticle_time">发表时间</p>
                    <p class="classArticle_recommend">推荐度</p>
                    <p class="classArticle_comment">评论</p>
                    <p class="classArticle_click">浏览</p>
                </li>
                [#if tag_list?size gt 0 || !emptyMsg??]
                [#list tag_list as s]
                <li>
                	<p class="classArticle_title">[#if s.url??]<a href="${s.url!}">${s.title}[#else]${s.title}[/#if]</a></p>
                	<p class="classArticle_editor"><a href="${base}/space.jsp?u=${s.user.id}">${s.author}</a></p>
                    <p class="classArticle_time">${s.date?string('yyyy-MM-dd')}</p>
                    <p class="classArticle_recommend cc_0${s.topLevel}"></p>
                    <p class="classArticle_comment">${s.comments}</p>
                    <p class="classArticle_click">${s.views}</p>
                </li>
                [/#list]
                [#else]
                <li>${emptyMsg!}</li>
                [/#if]
            </ul>
            [/@cms_lucene_page]
            [#else]
            	<p class="ss_result"></p>
                <div class="clear"></div>
            </div>
            [/#if]
        </div>
        <div id="right">
            <div class="boxB_bar"><span class="floatLeft">编辑推荐</span><a href="${base}/alone/boutique.jsp" class="more">更多>></a></div>
            <div class="boxB_con">
            	[@cms_content_list recommend='1' count='12' titLen='10' descLen='20' append='...' orderBy='2']
            	[#list tag_list as a]
            	<p [#if a_index == 5 && a_has_next]class="recommend_list rl_line"[#else]class="recommend_list"[/#if]><span class="recommend_name">[<a href="${base}/space.jsp?u=${a.user.id}">${a.author!'本站编辑'}</a>]</span><a href="${a.url}" class="a_green2" title="${a.title}">${a.title}</a></p>
            	[/#list]
            	[/@cms_content_list]
            </div>
            <div class="bar_A"><p class="bar_A_title">精彩点评</p><a href="${base}/alone/boutiqueComment.jsp" target="_blank" class="bar_A_more">更多>></a></div>
            [@cms_comment_list count='6' recommend='1' textLen='50' append='...']
			<div class="wonderful_comments">
			[#list tag_list as c]
				<p class="wc_li">[@text_cut s=c.textHtml len=textLen append=append/]</p>
				<p class="wc_from"><span class="wcf_name">----[#if c.commentUser??]<a href="${base}/space.jsp?u=${c.commentUser.id}" class="a_green2">${c.commentUser.username}</a>[#else]匿名用户[/#if]</span>评论了<span class="wcf_for"><a href="${c.content.url}" target="_blank">《${c.content.title}》</a></span></p>
			[/#list]
			</div>
			[/@cms_comment_list]
            <div class="bar_B"><p class="bar_B_title">活跃作者</p></div>
            <ul class="active_author">
            	[@cms_user_list orderBy='3' count='12']
            	[#list tag_list as u]
				<li><a href="${base}/space.jsp?u=${u.id}"><img src="/images/avatar/small/${u.id}.jpg" width="60" height="60" />${u.username}</a></li>
				[/#list]
				[/@cms_user_list]
            </ul>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
    [#include "../include/foot.html"/]
</div>
</body>
</html>
